import HomeView from '@/views/system/HomeView.vue'
import page404 from '@/views/system/404.vue'
import LoginView from '@/views/system/LoginView.vue'
import Goods from '@/views/goodsViews/Goods.vue'
import GoodsType from '@/views/goodsViews/GoodsType.vue'
import GoodsBrand from '@/views/goodsViews/GoodsBrand.vue'
import GgSupplier from '@/views/goodsViews/GgSupplier.vue'


import about from '@/views/syscontrolviews/about.vue'
import orderView from '@/views/b2cviews/Ordermgr.vue'
import orderForm from '@/views/b2cviews/OrderForm.vue'
import orderDetail from '@/views/b2cviews/OrderDetail.vue'
import orderIn from '@/views/b2cviews/OrderIn.vue'
import GiftMag from '@/views/giftviews/GiftMagView.vue'
import giftDetail from '@/views/giftviews/giftDetail.vue'

import user from '@/views/syscontrolviews/SysControlView.vue'
import useradd from '@/views/syscontrolviews/UserAdd.vue'
import userUpdate from '@/views/syscontrolviews/userUpdate.vue'

import role from '@/views/syscontrolviews/roleControlView.vue'
import roleAdd from '@/views/syscontrolviews/RoleAdd.vue'
import roleUpdate from '@/views/syscontrolviews/roleUpdate.vue'

import giftUpdate from '@/views/giftviews/giftUpdate.vue'
import gift2Goods from '@/views/giftviews/Gift2Goods.vue'
import giftAdd from '@/views/giftviews/GiftAdd.vue'
import gift2GoodsExamine from "@/views/giftviews/Gift2GoodsExamine .vue";
import addGift2Goods from "@/views/giftviews/addGift2Goods.vue";
import giftChoose from "@/views/giftviews/GiftChoose.vue";
import examineGift from "@/views/giftviews/examineGift.vue";
import examineGiftDetail from "@/views/giftviews/examineGiftDetail.vue";




const systemRouter =[
    {


        path: '/home',
        name: 'home',
        component: HomeView,
        children:[

            {
                path: '/order',
                name: 'orderForm',
                component: orderForm
            },
            {
                path: '/ordermgr',
                name: 'order',
                component: orderView
            },
            {
                path: '/about',
                name: 'about',
                component: about
            },
            {
                path: '/orderin',
                name: 'orderIn',
                component: orderIn
            },
            {
                path: '/orderDetail',
                name: 'orderDetail',
                component: orderDetail
            },
            {
                path: '/gift',
                name: 'gift',
                component: GiftMag
            },
            {
                path: '/gift/giftDetail',
                name: 'giftDetails',
                component: giftDetail
            },
            {
                path: '/gift/giftUpdate',
                name: 'giftUpdate',
                component: giftUpdate
            },
            {
                path: '/gift/gift2Goods',
                name: 'gift2Goods',
                component: gift2Goods
            }  ,{
                path: '/gift/giftAdd',
                name: 'giftAdd',
                component: giftAdd
            },{
                path: '/gift/gift2GoodsExamine',
                name: 'gift2GoodsExamine',
                component: gift2GoodsExamine
            },
            {
                path: '/gift/addGift2Goods',
                name: 'addGift2Goods',
                component: addGift2Goods
            },
            {
                path: '/gift/choose',
                name: 'giftChoose',
                component: giftChoose
            },
            {
                path: '/gift/examineGift',
                name: 'examineGift',
                component: examineGift
            },
            {
                path: '/gift/examineGiftDetail',
                name: 'examineGiftDetail',
                component: examineGiftDetail
            },


            {
                path: '/Goods',
                name: 'Goods',
                component: Goods
            },
            {
                path: '/GoodsType',
                name: 'GoodsType',
                component: GoodsType
            },
            {
                path: '/user',
                name: 'user',
                component: user
            },
            {
                path: '/user/add',
                name: 'useradd',
                component: useradd
            },
            {
                path: '/user/update',
                name: 'userUpdate',
                component: userUpdate
            },
            {
                path: '/role',
                name: 'role',
                component: role
            },
            {
                path: '/role/add',
                name: 'roleadd',
                component: roleAdd
            },
            {
                path: '/role/update',
                name: 'roleUpdate',
                component: roleUpdate

            }
            ,
            {
                path: '/GoodsBrand',
                name: 'GoodsBrand',
                component: GoodsBrand
            }
            ,
            {
                path: '/GgSupplier',
                name: 'GgSupplier',
                component: GgSupplier
            }
        ]
    },     {
        path: '/',
        name: 'login',
        component: LoginView
    }
    ,     {
        path: '/404',
        name: '404',
        component: page404
    }
    ,


]
export default systemRouter;